package com.vincent.redissondemo.config;

import org.springframework.beans.factory.annotation.Value;

/**
 * @author vincent
 * @DATE 2018/10/3
 * @Description
 */
//@Configuration
public class RedissonConfig {
    @Value("${spring.redis.url}")
    private String url;
//    @Bean
//    public RedissonClient redisson() throws IOException {
//        Config config = new Config();
//        config.useSingleServer().setAddress(url);
//        RedissonClient redisson = Redisson.create(config);
//        return redisson;
//    }
}
